<?php
 include_once('major_reqs.php');
 
 $reqs = new CMSCMajorRequirements();
 $courses_taken; // some array populated with Courses
 foreach ($courses_taken as $courses)
 	$reqs->add_course($course);
 $courses_remaining = $reqs->get_remaining_courses();
 ?>